package main

import (
	"fmt"
)

func main() {
	dwarfArray := [5]string{"Ceres", "Pluto", "Haumea", "Makemake", "Eris"}
	//dwarfSlice := dwarfArray[:]
	dwarfs := []string{"Ceres", "Pluto", "Haumea", "Makemake", "Eris"}

	fmt.Printf("array %T\n", dwarfArray)
	fmt.Printf("slice %T\n", dwarfs)

	planets := [...]string{
		"Mercury",
		"Venus",
		"Earth",
		"Mars",
		"Jupiter",
		"Saturn",
		"Uranus",
		"Neptune",
	}
	terrestrial := planets[0:4]

	fmt.Printf("array %T\n", planets)
	fmt.Printf("slice %T\n", terrestrial)
	// array [8]string
	// slice []string

}

// A slice of strings has the type []string , with no value between the brackets. This differs
// from an array declaration, which always specifies a fixed length or ellipsis between the
// brackets.
